package com.bootdo.analyze.controller;

import com.bootdo.analyze.domain.ClientSellAIDO;
import com.bootdo.analyze.domain.FinanceFormDO;
import com.bootdo.analyze.service.ClientSellAIService;
import com.bootdo.analyze.service.FinanceFormService;
import com.bootdo.common.utils.PageUtils;
import com.bootdo.common.utils.Query;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * 客户AI分析
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2020-03-02 10:02:27
 */
 
@Controller
@RequestMapping("/analyze/statement")
public class FinanceFormController {
	@Autowired
	private FinanceFormService financeFormService;


	/**
	 * 利润报表
	 * @return
	 */
	@GetMapping("/financeform")
	@RequiresPermissions("analyze:financeform:financeform")
	String financeForm(@RequestParam(required = false) FinanceFormDO financeFormDO, Model model){
		FinanceFormDO financeFormDO1 = financeFormService.getFinanceFormDO(financeFormDO);
		model.addAttribute("financeFormDO1",financeFormDO1);
		System.out.println(financeFormDO1.getCollectionPreference());
		return "analyze/financeform/financeform";
	}





	

	
}
